package com.dk.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 聊天内容表
 * </p>
 *
 * @author author
 * @since 2021-12-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("dt_chat")
@ApiModel(value="DtChat对象", description="聊天内容表")
public class DtChat implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增的主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "买方id(用户id)")
    private Long uid;

    @ApiModelProperty(value = "卖方id(另一方的用户id)")
    private Long bid;

    @ApiModelProperty(value = "当前聊天商品的id")
    private Long sid;

    @ApiModelProperty(value = "聊天内容")
    private String content;

    @ApiModelProperty(value = "聊天时间")
    private Date time;


}
